package com.bbs.core.dao;

import java.util.List;

import com.bbs.core.model.Post;

public interface PostDao {
    int deleteByPrimaryKey(Integer id);
    
    void deleteByTopicId(Integer topicId);

    int insert(Post record);

    int insertSelective(Post record);

    Post selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Post record);

    int updateByPrimaryKeyWithBLOBs(Post record);

    int updateByPrimaryKey(Post record);
    
    List<Post> selectAllPost();
    
    List<Post> selectPostByTopicId(Integer topicId);
    
}